package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.basic.vo.NccBasicUnitVo;
import com.bzkj.basicinfo.domain.ncc.BasicSkuUnitDetail;
import com.bzkj.basicinfo.domain.ncc.NccBasicDepartment;
import com.bzkj.basicinfo.domain.ncc.NccBasicUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Author wangzhichao
 * @ClassName NccBasicUnitMapper
 * @Date 2024/12/10
 * @description ncc物料信息
 */

public interface NccBasicUnitMapper
{
    /**
     * 查询物料信息
     * @Author wangzhichao
     * @Date 2024/12/10 11:26:19
     */
    List<NccBasicUnit> findNccBasicUnitData(NccBasicUnit entity);
    List<BasicSkuUnitDetail> findAllNccBasicUnitDetail();

    int nccBasicUnitUpdate(NccBasicUnit entity);

    /**
     * 根据code获取数据
     * @Author wangzhichao
     * @Date 2024/12/10 16:50:28
     * @Param code
     */
    NccBasicUnit getNccBasicUnitOne(String code);

    /**
     * 新增物料信息
     * @Author wangzhichao
     * @Date 2024/12/10 16:49:25
     * @Param entity
     */
    int nccBasicUnitSave(NccBasicUnit entity);

    List<NccBasicUnitVo> findNccBasicUnitAll();

    /**
     * 查询已经存在的主键
     * @param pkMeasdoc
     * @return
     */
    Set<String> findNccBasicpkMeasdocSetList(@Param("pkMeasdoc") List<String> pkMeasdoc);

    /**
     * 同步基础数据
     * @param nccBasicDepartment 数据
     */
    void insertOrUpdate(@Param("item") NccBasicDepartment nccBasicDepartment);

    int deleteNccBasicUnit(@Param("id") String id);
}
